package com.bwie.es.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

import java.util.Date;

/**
 * Es店铺实体类
 *
 * @author <a href="mailto:2891704036@qq.com">zhiyuheng</a>
 * @version 1.0
 * @description: Es店铺实体类
 * @date 2025/9/9 10:22
 */
@IndexName("shop")
@Data
public class EsShop {
    /**
     * ID
     */
    @IndexId(type = IdType.CUSTOMIZE)
    private Long id;
    /**
     * 店铺名称
     */
    @IndexField(fieldType = FieldType.TEXT,analyzer = "ik_max_word")
    private String shopName;
    /**
     * 店铺负责人
     */
    @IndexField(fieldType = FieldType.LONG)
    private Long userId;
    /**
     * 店铺录入时间
     */
    @IndexField(fieldType = FieldType.LONG)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shopEntryTime;
    /**
     * 店铺简介
     */
    @IndexField(fieldType = FieldType.TEXT)
    private String introduction;
    /**
     * 店铺状态（0-正常 1-关闭）
     */
    @IndexField(fieldType = FieldType.INTEGER)
    private Integer status;
}
